package com.liu.staticProxyDemo_1_1_version;

import com.liu.staticProxyDemo_1_0_version.A_Factory;
import com.liu.staticProxyDemo_1_0_version.ManToolsFactory;

public class Main {
    public static void main(String[] args) {
        ManToolsFactory factory1=new A_Factory();//被代理的对象
        WomanToolsFactory factory2=new B_Factory();//被代理的对象
        Zhangsan zhangsan =new Zhangsan(factory1,factory2);//代理对象，代理人zhangsan
        zhangsan.saleManTools("D");
        zhangsan.saleWomanToos(180);
    }
}
